export const serverConfig = (load: { VITE_PROXY_TARGET: string }) => {
  const { VITE_PROXY_TARGET } = load;
  return {
    proxy: {
      // 配置自定义代理规则
      '^/nest': {
        target: VITE_PROXY_TARGET,
        changeOrigin: true,
        rewrite: (path: string) => path.replace(/nest/, ''),
      },
    },
  };
};
